package com.cherry.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HelloController {


    @RequestMapping(path = "/helloSpring", params = "heihei")
//    ,method = RequestMethod.GET,headers = ""
    public String helloFun(HttpServletRequest request) {
        System.out.println("执行了-------hello");
        String parameter = request.getParameter("heihei");
        System.out.println("参数------" + parameter);
        return "hello";
    }

}
